package com.lovo.test.JAVAIO.JvaaFiles;

import com.lovo.test.JAVAIO.Io.FileUtil;

import java.io.*;
import java.util.Properties;

public class Test {
    public static void main(String[] args) {
        Test test = new Test();
        Properties properties = new Properties();
        String url = "http://www.lovo.com/index?name=aaaaaa&age=20&gender=男";
        int index=url.indexOf("?")+1;
        String str=url.substring(index);
        String[] strArr= str.split("&");
        for (int i = 0; i < strArr.length; i++) {
            String []strArrS=strArr[i].split("=");
            properties.setProperty(strArrS[0],strArrS[1]);
        }
        FileUtil.propertiesOutPut("1.properties",properties);
        
    }


}
